<%--
  Created by IntelliJ IDEA.
  User: 10473
  Date: 2019/6/25
  Time: 16:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>

    <script src="js/test.js"></script>
    <script type="text/javascript">
    var path = '${pageContext.request.contextPath }';
</script>
</head>
<body>
<form method="post" action="GoodsServlet">
    <input type="email"><br/>

    <input type="hidden" name="method" value="fathclass">
    <input type="text" name="fathclass">
    <input type="submit" value="查找">

</form>

测试 Session
<form method="post" action="UserServlet">
    <input type="email"><br/>

    <input type="hidden" name="method" value="test">
    <input type="submit" value="查找">

</form>
<br/>
<input type="text" id="MyName" value="${name}" ><br/>
<input id="username" type="text">
    <span id="sapnnew"></span><br/>
测试显式地址栏
<form action="AddressServlet" method="post">
<input type="hidden" name="method"  value="show">
<input type="submit" value="提交地址栏测试">
</form><br/>

测试新增地址栏
<form action="AddressServlet" method="post">
    <input type="hidden" name="method"  value="insert">
    地址：<input type="text" name="address">
    电话：<input type="text" name="phone">
    收件人：<input type="text" name="addressee">
    <input type="submit" value="新增地址栏测试">
</form><br/>

测试删除地址
<form action="AddressServlet" method="post">
    <input type="hidden" name="method"  value="delete">
    <input type="text" name="ID">
    <input type="submit" value="删除地址测试">
</form><br/>

测试修改地址
<form action="AddressServlet" method="post">
    <input type="hidden" name="method"  value="modify">
    ID: <input type="text" name="ID">
    电话：<input type="text" name="phone">
    地址：<input type="text" name="address">
    收件人：<input type="text" name="addressee">
    <input type="submit" value="修改地址测试">
</form><br/>

链接实验
<a href="${pageContext.request.contextPath}/AddressServlet?method=show">测试链接</a><br/>
<c:forEach items="${userAddress}" var="p">
    <tr>
        <td>${p.user}</td>
        <td>${p.address}</td>
        <td>${p.phone}</td>
        <br/>
    </tr>
</c:forEach>



<c:forEach items="${order}" var="p">

    <c:forEach items="${p.detail_order}" var="m">
        ${m.onlyPrice}
    </c:forEach>
    <br/>
</c:forEach>
</body>

</html>
